﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoachingOrganizer.Logic.Models.Tools.MoneyCalculation
{
    public abstract class PeriodGroupReportModelBase
    {
        private readonly string _name;
        private readonly int _sign;

        public string Name
        {
            get { return _name; }
        }

        public int Sign
        {
            get { return _sign; }
        }

        internal Func<decimal> GetAmountDelegate;

        public PeriodGroupReportModelBase(string name, int sign)
        {
            _name = name;
            _sign = sign;
        }

        public decimal GetAmount()
        {
            return GetAmountDelegate();
        }
    }
}
